/**
 * The database package of the application.
 */
package fr.umlv.m2.android.quizz.database;

/**
 * This class defines the user object.
 * 
 * @author Gambouele Bertrand.
 * @author Viravout Alexandre.
 */
public class User {
	/**
	 * The user id.
	 */
	private long id;
	/**
	 * The user name.
	 */
	private String name;
 
	/**
	 * Create the user object.
	 */
	public User(){}
 
	/**
	 * Create the user object.
	 * 
	 * @param name the user name.
	 */
	public User(String name){
		this.name = name;
	}
	
	/**
	 * Sets the user id.
	 * 
	 * @param id the user id.
	 */
	public void setId(long id) {
		this.id = id;
	}
 
	/**
	 * Gets the user id.
	 * 
	 * @return the user id.
	 */
	public long getId() {
		return this.id;
	}
	
	/**
	 * Sets the user name.
	 * 
	 * @param name the user name.
	 */
	public void setName(String name) {
		this.name = name;
	}
 
	/**
	 * Gets the user name.
	 * 
	 * @return the user name.
	 */
	public String getName() {
		return this.name;
	}
}
